<template>
  <div>
    <div class="content" v-for="t in 10">
      <div class="content-item" v-for="item in 4">
        <div class="item-bottom">
          <span>￥100.00</span>
          <el-button type="danger" round @click="toBuy">点击购买</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {openCurrentWindow} from "~/util/util";
export default {
  name:'Content',
  methods:{
    toBuy(){
      openCurrentWindow('/course/detail/1')
    }
  }
}
</script>

<style scoped>
  .content{
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .content-item{
    padding: 30px;
    width: 300px;
    height: 300px;
    display: flex;
    margin: 30px;
    align-items: flex-end;
    justify-content: center;
    background: url("@/static/images/bigdata.jpg") center no-repeat;
    background-size: 100% 100%;
  }

  .content-item .item-bottom{
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
  }

  .content-item .item-bottom span{
    font-weight: bold;
    font-size: 20px;
    color: #F78989;
  }
</style>
